package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareAppointment;
import com.YxyBackMange.Mapper.Ware.WareAppointmentMapper;
import com.YxyBackMange.Service.Ware.WareAppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareAppointmentServiceImpl implements WareAppointmentService{
	
	@Autowired
    private WareAppointmentMapper wareAppointmentMapper;
    
   @Override
   public WareAppointment insertService(WareAppointment wareAppointment){
        wareAppointmentMapper.insertSelective(wareAppointment);
	   return wareAppointment;
	   
   };
   @Override
   public WareAppointment updateService(WareAppointment wareAppointment){
	     wareAppointmentMapper.updateByPrimaryKeySelective(wareAppointment);
        return wareAppointment;
   };
    @Override
    public WareAppointment update(WareAppointment wareAppointment) {
        wareAppointmentMapper.updateByPrimaryKeySelective(wareAppointment);
        return wareAppointment;
    }
   @Override
   public WareAppointment delete(WareAppointment wareAppointment){

	     wareAppointmentMapper.delete(wareAppointment);
        return wareAppointment;
   };
    @Override
    public WareAppointment insert(WareAppointment wareAppointment){

        wareAppointmentMapper.insertSelective(wareAppointment);
        return wareAppointment;

        };
}
